home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / pmlsrc23.zoo / pmlsrc / matherr.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-19  |  1.5 KB  |  61 lines

  1. /************************************************************************
  2.  *                                    *
  3.  *                N O T I C E                *
  4.  *                                    *
  5.  *            Copyright Abandoned, 1987, Fred Fish        *
  6.  *                                    *
  7.  *    This previously copyrighted work has been placed into the    *
  8.  *    public domain by the author (Fred Fish) and may be freely used    *
  9.  *    for any purpose, private or commercial.  I would appreciate    *
  10.  *    it, as a courtesy, if this notice is left in all copies and    *
  11.  *    derivative works.  Thank you, and enjoy...            *
  12.  *                                    *
  13.  *    The author makes no warranty of any kind with respect to this    *
  14.  *    product and explicitly disclaims any implied warranties of    *
  15.  *    merchantability or fitness for any particular purpose.        *
  16.  *                                    *
  17.  ************************************************************************
  18.  */
  19.  
  20.  
  21. /*
  22.  *  FUNCTION
  23.  *
  24.  *    matherr    default math error handler function
  25.  *
  26.  *  KEY WORDS
  27.  *
  28.  *    error handler
  29.  *    machine independent routines
  30.  *    math libraries
  31.  *
  32.  *  DESCRIPTION
  33.  *
  34.  *    Default math error handler for the math library.  This routine
  35.  *    may be replaced by one of the user's own handlers.  The default
  36.  *    is to do nothing and returns zero.  If the user wishes to supply
  37.  *    the return value for the function, and to suppress default
  38.  *    error handling by the function, his matherr routine must return
  39.  *    non-zero.
  40.  *
  41.  *  USAGE
  42.  *
  43.  *    int matherr (xcpt)
  44.  *    struct exception *xcpt;
  45.  *
  46.  *  PROGRAMMER
  47.  *
  48.  *    Fred Fish
  49.  *
  50.  */
  51.  
  52. #include <stdio.h>
  53. #include <math.h>
  54. #include "pml.h"
  55.  
  56. int matherr (xcpt)
  57. struct exception *xcpt;
  58. {
  59.     return (0);
  60. }
  61.